package lab02.test22;

/**
 * Created by Administrator on 2017/10/30.
 */
public class Convert {

    public static void main(String[] args) {
            String result="Hello,World!123 ";
            char tmp;
            int i;
            for(i=0;i<result.length();i++){
                tmp=result.charAt(i);
                if(tmp>='A'&&tmp<='Z'){
                    System.out.print((char)(tmp+32));
                }else if(tmp>='0'&&tmp<='9'){
                    System.out.print(0);
                }else if(tmp>='a'&&tmp<='z' ) {
                    System.out.print(tmp);
                }else {
                    System.out.print("#");
                }
            }
        }
    }




